import pygame
import Character

image=pygame.image.load("bite.bmp")
image.set_colorkey((255,0,255))

class Bite(Character.Character):
	def __init__(self,x=0,y=0,mass=10):
		Character.Character.__init__(self,x=x,y=y,mass=mass)
		self.image=image
		self.cur_image=self.image
		self.timer=1
	def canClimb(self,it):
		return False
	def getHeight(self):
		return self.cur_image.get_height()
	def getWidth(self):
		return self.cur_image.get_width()
	def getFullHeight(self):
		self.getHeight()
	def hitResult(self):
		self.cur_room.projectilesList.remove(self)
	def drawingInformation(self):
		return (self.x-0.5*self.getWidth(),self.y+self.getHeight()),self.image
	def damageDealt(self,other):
		other.physicalDamageTaken(22)
	def postcondition(self):
		if self.timer==0:
			self.hitResult()
		else:
			self.timer=self.timer-1